package com.s3.khospitalds.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: xw
 * @CreateTime: 2024/12/16
 * @Description: 读取默认文件里面的自定义属性
 * @Version: 1.0
 */
@Component
@ConfigurationProperties(prefix = "myconfig")
public class MyConfigProperties {
    private int pageSize;//默认分页的每条数据
    private int max;
    private int min;

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
